			<div class="centCont">
            	<div class="boxCent">
                	<div class="tt-boxCent">
                    	<p>Đơn hàng</p>
                        <div class="che-tt-cent"></div>
                    </div><!--tt-boxCent-->
                    <div class="cc-boxCent">
                    	<?php if (count($this->spDonHang) > 0) :?>
                    	<table width="100%" cellpadding="5" cellspacing="0" border="0" style="font-size:14px;">
                    		<tr>
                    			<th width="140" align="left"><span style="margin-left:21px;">Ngày thanh toán</span></th>
                    			<th width="152" align="left">Mã giao dịch</th>
                    			<th width="274" align="left">Hình thức thanh toán</th>
                    			<th align="left">Trạng thái</th>
                    		</tr>
                    	</table>
			            <div style="overflow:scroll;height:100px;padding-left:20px;padding-right:20px;padding-bottom:20px;line-height:20px;">
			                 <table width="100%" cellpadding="3" cellspacing="0" border="0" style="font-size:12px;">
				                 <?php foreach ($this->spDonHang as $dDH) :?>
				                 <tr>
				                 	<td width="100" class="border-top border-left" align="center"><?php echo FunctionCommon::convertDate($dDH['insert_at']);?></td>
				                 	<td width="120" class="border-top border-left" align="center"><a class="underError" style="font-weight:bold;color:#F00;<?php if($this->getGet['code']==$dDH['maHang']){echo 'color:#0099FF;';}?>" href="<?php echo WEB_LINK . "/";?>product/ma-hang-<?php echo $dDH['maHang'];?>#thanhtoantiep"><?php echo $dDH['maHang'];?></a></td>
				                 	<td width="300" class="border-top border-left" align="left"><?php echo constants::$typeThanhToan[$dDH['type_tt']];?></td>
				                 	<td class="border-top border-left border-right" align="center"><?php echo ($dDH['active']=='1') ? "<img width='18' src='".WEB_LINK."/images/default/camxuc3.gif'>" : "<img width='20' style='opacity:0.4;' src='".WEB_LINK."/images/default/wait.gif'>";?></td>
				                 </tr>
				                 <?php endforeach;?>
				                 <tr>
				                 	<td class="border-top">&nbsp;</td>
				                 	<td class="border-top">&nbsp;</td>
				                 	<td class="border-top">&nbsp;</td>
				                 	<td class="border-top">&nbsp;</td>
				                 </tr>
			                 </table>
			             </div>
                    	<?php endif;?>
                    	<?php if ($this->detailDH) :?>
                    	<div class="thanhtoantiep" id="thanhtoantiep">
                        	<ul>
                            	<li class="title"><p>Thông tin khách hàng</p></li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Họ và tên :</p></li>
                                        <li class="right"><span><?php echo $this->dataUser['hoten'];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Địa chỉ :</p></li>
                                        <li class="right"><span><?php echo $this->dataUser['diachi'];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Tỉnh/Thành phố :</p></li>
                                        <li class="right"><span><?php echo constants::$arrayCountry[$this->dataUser['tinh']];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Quốc gia :</p></li>
                                        <li class="right"><span>Việt Nam</span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Điện thoại :</p></li>
                                        <li class="right"><span><?php echo ($this->dataUser['phone']!='') ? $this->dataUser['phone'] : $this->dataUser['phone2'];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>E-mail :</p></li>
                                        <li class="right"><span><?php echo $this->dataUser['email'];?></span></li>
                                    </ul>
                                </li>
                                <li class="title"><p>PHƯƠNG THỨC THANH TOÁN</p></li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Thanh toán qua cổng:</p></li>
                                        <li class="right"><span><?php echo constants::$typeThanhToan[$this->congThanhToan['type_tt']];?></span></li>
                                    </ul>
                                </li>
                                <li class="title"><p>THÔNG TIN HÓA ĐƠN MÃ <span style='font-weight:bold;color:#F00;'><?php if ($this->getGet['code']!='') {echo $this->getGet['code'];}?></span></p></li>
                                <li class="thongtinmathang">
                                	<table width="100%" cellpadding="5" cellspacing="0" border="0" style="font-size:13px;">
                                		<tr>
                                			<th class="border-right">Tên sản phẩm</th>
                                			<th width="90" class="border-right">Số lượng</th>
                                			<th width="124" class="border-right">Đơn giá</th>
                                			<th width="127">Thành tiền</th>
                                		</tr>
                                		<?php $tongTien=0; if(count($this->spGioHang) > 0) :?>
                                        <?php foreach ($this->spGioHang as $giohang) :?>
                                        <tr>
                                			<td class="border-top border-right"><?php echo $giohang['nameD']." | ".$giohang['nameC']." | ".$giohang['nameS'];?></td>
                                			<td class="border-top border-right" align="center"><?php echo $giohang['soluong'];?></td>
                                			<td class="border-top border-right" align="center"><?php echo number_format($giohang['dongia']);?>.000 VNĐ</td>
                                			<td class="border-top" align="center"><?php echo number_format($giohang['tongtien']);?>.000 VNĐ</td>
                                		</tr>
                                        <?php $tongTien += $giohang['tongtien']; endforeach;?>
                                        <?php endif;?>
                                        <tr>
                                        	<th align="right" class="border-top" colspan="3">Chi phí đơn hàng:</th>
                                        	<td align="right" class="border-top"><?php echo number_format($tongTien);?>.000 VNĐ</td>
                                        </tr>
                                        <tr>
                                        	<th align="right" colspan="3">Phí dịch vụ:</th>
                                        	<td align="right"><?php echo number_format($this->congThanhToan['phiDV']); ?> VNĐ</td>
                                        </tr>
                                        <tr>
                                        	<th class="border-bottom" align="right" colspan="3">Thành tiền:</th>
                                        	<td class="border-bottom" align="right" style="color:red;"><?php echo $totalThanhToan = number_format(($tongTien*1000) + $this->congThanhToan['phiDV']);?> VNĐ</td>
                                        </tr>
                                	</table>
                                </li>
                                <li class="tonggiatridonhang">
                                	<p>Số tiền đã thanh toán :</p>
                                    <span><?php echo ($this->activeFlag) ? $totalThanhToan : 0;?> VNĐ</span>
                                </li>
                            </ul>
                            <table width="100%" cellpadding="5" cellspacing="0" border="0" style="margin-top: 20px;font-size:13px;">
                            	<tr>
                            		<th colspan="3" align="left">Tình trạng : <?php echo ($this->activeFlag) ? "Đã nhận thẻ" : "Chưa thanh toán";?></th>
                            	</tr>
                            	<?php if ($this->activeFlag) :?>
	                            <tr>
	                            	<th class='border-top border-left'>STT</th>
	                            	<th class='border-top border-left' align="left">Tên sản phẩm</th>
	                            	<th align="center" class='border-top border-left' align="left">Số seri</th>
	                            	<th align="center" class='border-top border-left border-right' align="left">Mã thẻ</th>
	                            </tr>
	                            <?php $i=1; if (count ($this->arMaTheActive) > 0) :?>
		                		<?php foreach ($this->arMaTheActive as $ma) :?>
		               			<tr>
		                   			<td class='border-top border-left' align="center"><?php echo $i;?></td>
		                    		<td class='border-top border-left'><?php echo $ma['nameD'] . " | " . $ma['nameC'] . " | " . $ma['nameS']; ?></td>
		                    		<td align="center" class='border-top border-left'><?php echo $ma['seri']; ?>&nbsp;</td>
		                      		<td align="center" class='border-top border-left border-right'><?php echo $ma['maSanPham'];?></td>
		                  		</tr>
		               			<?php $i++; endforeach;?>
		               			<?php endif;?>
		               			<?php if (count ($this->arSanPhamActive) > 0) :?>
		               			<tr>
	                            	<td class="border-top">&nbsp;</td>
	                            	<td class="border-top">&nbsp;</td>
	                            	<td class="border-top">&nbsp;</td>
	                            	<td class="border-top">&nbsp;</td>
	                            </tr>
		               			<tr>
		               				<td colspan="4" height="35"><span style="font-weight:bold;">Những sản phẩm này chúng tôi sẽ chuyển tới bạn sớm nhất !</span></td>
		               			</tr>
		                		<?php $j=$i; foreach ($this->arSanPhamActive as $sp) :?>
		               			<tr>
		                   			<td class='border-top border-left' align="center"><?php echo $j;?></td>
		                    		<td class='border-top border-left border-right' colspan="3"><?php echo $sp['nameD'] . (($sp['nameC']!='') ? ' | '.$sp['nameC'] : '') . " | " . $sp['nameS']; ?></td>
		                  		</tr>
		               			<?php $j++; endforeach;?>
		               			<?php endif;?>
	                            <tr>
	                            	<td class="border-top">&nbsp;</td>
	                            	<td class="border-top">&nbsp;</td>
	                            	<td class="border-top">&nbsp;</td>
	                            	<td class="border-top">&nbsp;</td>
	                            </tr>
	                            <?php endif;?>
                            </table>
                        </div><!--thanhtoantiep-->
                        <?php endif;?>
                    </div><!--cc-boxCent-->
                </div><!--boxCent-->
                <div class="qc-cent"><img src="<?php echo WEB_LINK . "/";?>images/qc-cent-1.jpg" /></div><!--qc-cent-->
            </div><!--centCont-->